package com.bootdo.system.domain;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;



/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-05-29 19:31:18
 */
public class NewsDO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//新闻主键
	private Integer id;
	//标题
	private String title;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createTime;
	//新闻来源
	private String source;
	//新闻内容
	private String content;
	//新闻图片
    private String url;
    //时间之前
    private String timeBefore;
    

	/**
	 * 设置：新闻主键
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：新闻主键
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：标题
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * 获取：标题
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：新闻来源
	 */
	public void setSource(String source) {
		this.source = source;
	}
	/**
	 * 获取：新闻来源
	 */
	public String getSource() {
		return source;
	}
	/**
	 * 设置：新闻内容
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * 获取：新闻内容
	 */
	public String getContent() {
		return content;
	}
	/**
	 * 设置：新闻图片
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	/**
	 * 获取：新闻图片
	 */
	public String getUrl() {
		return url;
	}
	public String getTimeBefore() {
		return timeBefore;
	}
	public void setTimeBefore(String timeBefore) {
		this.timeBefore = timeBefore;
	}
	
}
